<template>
  <div class="select-license">
    <select class="r-language" v-model="selectLicense">
      <option v-for="e in license" :key="e" :label="e" :value="e">
        {{ e }}
      </option>
    </select>
  </div>
</template>

<script>
  import { Select, Option } from 'element-ui';

  export default {
    name: 'selectLicense',
    data() {
      return {
        selectLicense: '',
        license: [
          'CC BY',
          'CC BY-NC',
          'CC BY-NC-ND',
          'CC BY-NC-SA',
          'CC BY-ND',
          'CC BY-SA'
        ]
      };
    },
    components: {
      teSelect: Select,
      teOption: Option
    },
    mounted() {
      this.selectLicense = this.license[0];
    }
  };
</script>

<style scoped>
  .select-license {
    background: #00acff;
  }

  select {
    width: 100%;
    display: block;
    border-radius: 0;
    padding: 8px;
    color: #fff;
    -webkit-appearance: none;
    text-align: center;
    text-align-last: center;
  }

  select:hover {
    background: #008ae6;
  }
</style>
